package com.library.lms.dao;

import com.library.lms.entity.Books;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BooksMapper {
    int insertBooks(Books books);

    List<Books> selectBooks();

    List<Books> selectBooksByName(@Param("bookName") String name, @Param("bookAuthor") String author);

    int deleteBook(int id);

    int updateByBook(int num, Long id);

    int updateBook(Books books);
}
